function test(){
	console.log("Lisa clicked");
	$.ajax({
		url: "Complaint",
		type: "POST",
		data: "action=test",
		async: true,
		success: function (response) {
			console.log(response);
		}
	});
}

function logout(){
	$.ajax({
		url: "Complaint",
		type: "POST",
		data: "action=logout",
		async: true,
		success: function (response) {
			//console.log(response);
		}
	});
}

function getMyComplaintsFromDB(orderBy){
	var d = "orderby=" + orderBy;
	$.ajax({
		type: 'POST',
		data: d,
		url: "GetComplaintsDB",
		async: false,
		success: function (jsonArray) {
			$("#myComplaintsTableArea").html(getMyComplaintsTable(jsonArray));
		}
	});
	showDescriptionOnHover();
}

